﻿using System.ComponentModel;
using System.Data;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for EditEventWindow.xaml
    /// </summary>
    public partial class TFEKP
    {
        public TFEKP()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VEKPOS();
            this.DataContext = MV;
            InitializeComponent();

        }
        public override void LOADBYAUF()
        {
            if (ORDERNUM.Length < 8)
            {
                return;
            }
            if (ORDERNUM.Substring(0, 8) != KRS + LFD)
            {
                KRS = ORDERNUM.Substring(0, 2);
                LFD = ORDERNUM.Substring(2, 6);
                PM["KRS"] = ORDERNUM.Substring(0, 2);
                PM["LFD"] = ORDERNUM.Substring(2, 6);
                ((VEKPOS)MV).LOADBYEK(PM);
                vwMaster.View.MoveCurrentTo(-1);
            }

        }
    
    }

}
